package engine.newUi
{
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	
	import newx.com.control.Scroll.NxScrollPanel;
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.tab.NxTab;
	import newx.com.control.text.NxLabel;
	import newx.com.control.text.NxText;

	/**
	 * 阵营战 
	 * @author liuel
	 * 
	 */	
	public class CampBattleUI extends BaseUI
	{
		private static var _self			:CampBattleUI;
		//参战
		public 			 var joinBattleBtn	:NxButton;
		//阅历鼓舞
		public 			 var experEncourageBtn	:NxButton;
		//银两鼓舞
		public 			 var taelEncourageBtn	:NxButton;

		//鼓舞Buff Label
		public 			 var encourageLabel :NxLabel;
		public 			 var leftLabel		:NxLabel;
		public 			 var rightLabel		:NxLabel;
		public 			 var tiemLabel		:NxLabel;
		public 			 var winLabel		:NxText;
		public 			 var maxbattle		:NxLabel;
		public 			 var currbattle		:NxLabel;
		public 			 var selflabel		:NxLabel;
		public 			 var alllabel		:NxLabel;
		//左玩家
		public 			 var leftUserLabel  :NxLabel;
		//右玩家
		public 			 var rightUserLabel  :NxLabel;
		//声望
		public 			 var prestigeLabel	:NxLabel;
		//金钱
		public 			 var goldLabel		:NxLabel;
		//战报Txt
		public 			 var battleTxt		:NxText;
		//左滚动
		public 			 var leftScroll		:NxScrollPanel;
		//右滚动
		public 			 var rightScroll	:NxScrollPanel;
		//左玩家Group
		public 			 var leftUserGroup	:NxViewGroup;
		//右玩家Group
		public 			 var rightUserGroup	:NxViewGroup;
		public 			 var leftTab		:NxTab;
		public			 var rightTab		:NxTab;
		//所有战报
		public 			 var allBattleBtn	:MovieClip;
		//自己战报
		public 			 var selfBattelBtn	:MovieClip;
		//左领先
		public          var leftstate      :MovieClip;
		//右领先
		public          var rightstate		:MovieClip;
		//中间背景
		public 			 var bgMC			:MovieClip;
		//聚义庄
		public 			 var leftMC			:MovieClip;
		//侠义盟
		public 			 var rightMC		:MovieClip;
		//左蒙板
		public			 var leftPanl       :MovieClip;
		//右蒙板
		public			 var rightPanl       :MovieClip;
		public          var bgpanlMC		:MovieClip;
		public 			 var rightbgMC		:MovieClip;
		public 			 var leftbgMC		:MovieClip;
		public 			 var textMC			:MovieClip;
		public 			 var mc1			:MovieClip;
		public 			 var mc2			:MovieClip;
		public 			 var mc3			:MovieClip;
		public 			 var mc4			:MovieClip;
		public 			 var mc5			:MovieClip;
		public 			 var mc6			:MovieClip;
		//自动参战
		public 			var ckeckJoin		:MovieClip;
		public 			var jionLabel		:NxLabel;
		public static function getInstance():CampBattleUI
		{
			if(_self == null)
			{
				_self = new CampBattleUI();
			}
			return _self;
		}
		public function CampBattleUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		override public function  Init():void
		{
			CampBattleLogic.getInstance().Init();
		}
		override protected function	BeforeShow():void
		{
			CampBattleLogic.getInstance().BeforeShow();
		}
		override protected function	AfterHide():void
		{
			CampBattleLogic.getInstance().AfterHide();
		}
	}
}